﻿Chenxin.UI.EmployeeOprLogs=Chenxin.extend(Chenxin.UI.PageCommon,{
    autoInitForm:false,
    actionUrl:'service/EmployeeOprLogs.ashx',
    createSearch:function(){
		return new Chenxin.UI.EmployeeOprLogsSearch({
			scope:this,
			afterGetParamJson:function(data){
			    data.op='Search';
            }
		});
	},
	createGrid:function(){
		return new Chenxin.UI.Pagination({
			actionUrl:this.actionUrl,
			domId:'page',
			renderTo:'EmployeeOprLogs_table',
			data:{op:"Search"},
			render:function(data){
				document.getElementById('EmployeeOprLogs_table').innerHTML=data;
			}
		});
	},
	initComponent:function(){
	    Chenxin.UI.EmployeeOprLogs.superclass.initComponent.call(this);
	}
}); 

/**
*查询面板
*/
Chenxin.UI.EmployeeOprLogsSearch=Chenxin.extend(Chenxin.UI.SearchCommon,{
    id:'EmployeeOprLogs_search',
	initEvent:function(){
		var _this=this; 
        
		//查询按钮
		$('#btnSreachOprLogs').click(function(){
		    _this.scope.reloadGrid();
		});
        
	},
    createComboList: function() {
    
        //用户操作日志类型
    	var cmboprtype = new Chenxin.UI.Combo({
    	    actionUrl:'/service/EmployeeOprLogs.ashx?op=GetOprTypeComboList',
            containerId:'#divOprType',
            name:"OprType",
            tbxWidth:90,
            autoLoad:true,
			colNum:3,
			colWidth: 80,
			hasPage: true,
			pageSize: 15,
			hasSearch:true,
            inModelType: 'txt'
        });	
        
        //五级联Combo
        var combl = new Chenxin.UI.StructComboList();
        var structs = combl.comboList;
        structs.push(cmboprtype);
        
        return structs;
    },
    initComponent: function() {
        Chenxin.UI.EmployeeOprLogsSearch.superclass.initComponent.call(this);
    }
});

$(document).ready(function(){
    this.EmployeeOprLogs=new Chenxin.UI.EmployeeOprLogs();
});